<style>
    .switch input{
        margin-bottom: 20px;
    }
    .switch label{
        line-height: 30px;
        margin-left: 10px;
    }
    .switch .bootstrap-switch{
        float: right;
        margin-right: 10px;
    }
    body{
        background-color: #f9f9f9;
    }
</style>
<div class="switch">
    {% for c in configure %}
        <div class="checkbox">
            <label style="vertical-align:middle;">
                <input style="margin-top:8px;" type="checkbox" value="{{ c['key'] }}" name="configure"
                        {% for value in userConfigure %}
                            {% if value == c['key'] %}checked{% endif %}
                        {% endfor %}
                />
                <span>{{ c['name'] }}</span>
            </label>
        </div>
    {% endfor %}
</div>
<script>
    var ids = '{{ ids }}';
</script>